﻿Public Class Calculator
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub bCalculate_Click(sender As Object, e As EventArgs) Handles bCalculate.Click
        Dim firstNumber As Integer
        Dim secondNumber As Integer
        Dim total As Integer

        firstNumber = CInt(txtNo1.Text)
        secondNumber = CInt(txtNo2.Text)

        total = firstNumber + secondNumber
        Label1.Text = total

    End Sub
End Class